/**
 * 
 * ***/
package Avocado.visual {
	import flash.display.MovieClip;
	public class ToolTip extends MovieClip {
		public function ToolTip(){
			super();
		}
	}
}
/*
package Avocado.visual {

	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.filters.BlurFilter;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;

	public class ToolTip extends MovieClip {
		
		private var fact:Number = new Number(16);
		private var blWidth:Number;
		private var blHeight:Number;
		private var round:Number;
		
		private var blur:BlurFilter = new BlurFilter(15,15);

		private var text:String;
		private var textColor:uint;
		private var backgorundColor:uint;
		private var borderColor:uint;
		private var strokeWidth:Number;
		private var hasShadow:Boolean;
		
		private var textFormat:TextFormat = new TextFormat("Arial", 14);
		private var textField:TextField;
		
		private var balloon:MovieClip;

		private var shadow:MovieClip;
		
		public function ToolTip(_text:String, _textColor:uint, _backgorundColor:uint, _borderColor:uint, _strokeWidth:Number=2, _shadow:Boolean=true) {
			super();

			this.text = _text;
			this.textColor = _textColor;
			this.backgorundColor = _backgorundColor;
			this.borderColor = _borderColor;
			this.strokeWidth = _strokeWidth;
			this.hasShadow = _shadow;

			this.addEventListener(Event.ADDED_TO_STAGE, initThis);
		}
		
		private function initThis(e:Event):void{
			this.removeEventListener(Event.ADDED_TO_STAGE, initThis);
			setupText();
			setupBalloon();
			if (this.hasShadow){
				setupShadow();
			}
			this.addEventListener(Event.ENTER_FRAME, updateThis);
		}
		
		private function updateThis(e:Event):void{
			updateBalloon();
		}
		
		private function setupText():void{
			textFormat.color = this.textColor;
			
			textField = new TextField;
			textField.x = this.fact/2;
			textField.y = this.fact/2 - 1;
			textField.text = this.text;
			textField.selectable = false;
			// textField.embedFonts = true;
			textField.autoSize = TextFieldAutoSize.LEFT;
			textField.setTextFormat(textFormat);
			
			addChild(textField);
		}

		
		private function setupBalloon():void{
			round = new Number((textField.width/10 +  textField.textHeight/10 + fact)/2 );
			
			blWidth = textField.textWidth+this.fact;
			blHeight = textField.textHeight+this.fact;
			
			balloon = new MovieClip;
			balloon.shadow.visible = this.hasShadow;
			balloon.gotoAndStop(1);
			addChildAt(balloon, 0);
		}
			private function updateBalloon():void{
				trace(this.x);
				if (this.y < stage.stageHeight/2){
					if (this.x > stage.stageWidth/2){ 
						balloon.gotoAndStop(1);
					} else {
						balloon.gotoAndStop(2);
					}
				} else {
					if (this.x < stage.stageWidth/2){ 
						balloon.gotoAndStop(3);
					} else {
						balloon.gotoAndStop(4);
					}
				}
				
				if (this.y > stage.stageHeight/2){
					balloon.gotoAndStop(balloon.currentFrame - 1);
				} else {
					balloon.gotoAndStop(balloon.currentFrame + 1);
				}
			}
		
		private function setupShadow():void{
		}
		
	}
}

*/